﻿using System.Data.Common;

namespace DB
{
    /// <summary>
    /// SQL命令对象
    /// </summary>
    public class CommandInfo
    {
        public CommandInfo() { }
        /// <summary>
        /// CommandInfo构造函数
        /// </summary>
        /// <param name="sqlText">SQL命令</param>
        /// <param name="para">命令参数数组</param>
        /// <param name="type">影响类型</param>
        public CommandInfo(string sqlText, System.Collections.Generic.IList<DbParameter> para = null, EffectNextType type = EffectNextType.ExcuteEffectRows)
        {
            this.CommandText = sqlText;
            this.Parameters = para;
            this.EffentNextType = type;
        }
        /// <summary>
        /// SQL命令
        /// </summary>
        public string CommandText;
        /// <summary>
        /// 命令参数数组
        /// </summary>
        public System.Collections.Generic.IList<DbParameter> Parameters;
        /// <summary>
        /// 影响类型
        /// </summary>
        public EffectNextType EffentNextType;
    }
}
